package com.api.shopapi.service;

import com.api.shopapi.entity.GoodsClassBusiness;
import com.api.shopapi.entity.dto.GoodsClassBusinessDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface GoodsClassBusinessService {

    int insert(GoodsClassBusiness goodsClassBusiness);

    int update(GoodsClassBusiness goodsClassBusiness);

    GoodsClassBusiness getByGoodsClassBusinessCode(String goodsClassBusinessCode);

    GoodsClassBusiness getByName(String name,String businessCode);

    List<GoodsClassBusiness> getListByBusinessCode(String businessCode);

    List<GoodsClassBusinessDTO> getListByBusinessCodeAndParent(String businessCode, String parentGoodsClassBusinessCode);

    List<GoodsClassBusinessDTO> getListByParentAll(String businessCode, String parentGoodsClassBusinessCode);

    PageInfo<GoodsClassBusiness> getPageList(int pageIndex, int pageSize, String businessCode, String name, int status);

}
